<% unless @product.rotator_url.blank? %>
  <div id="rotator-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="rotator-modal-btn" aria-hidden="true" style="display: none;">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
          <h4 class="modal-title" id="rotator-modal-btn"><%= @product.name %> 360° Rotator</h4>
        </div>
        <div class="modal-body">
          <div id="rotator-wrap">
            <div class="threesixty product_slider">
              <div class="spinner">
                <span>0%</span>
              </div>
              <ol class="threesixty_images"></ol>
            </div>
          </div>
          <div id="three-sixty-controls">
            <a id="three-sixty-previous" class="btn btn-default btn-primary"><i class="fa fa-step-backward"></i> Previous</a>
            <a id="three-sixty-play" class="btn btn-default btn-primary "><i class="fa fa-play-circle-o"></i> Play</a>
            <a id="three-sixty-stop" class="btn btn-default btn-primary active"><i class="fa fa-pause-circle-o"></i> Pause</a>
            <a id="three-sixty-next" class="btn btn-default btn-primary">Next <i class="fa fa-step-forward"></i></a>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">Close</button>
        </div>

      </div>
    </div>
  </div>
<% end %>
